<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<div th:replace="fragment/front/meta"></div>
		<title th:utext="${application.siteName}"></title>
		<div th:replace="fragment/front/css"></div>
		<link rel="stylesheet" type="text/css" th:href="@{/statics/page/css/front/index/index.css}" />
	</head>
	<body>
	
		<div th:replace="fragment/front/nav"></div>
	
		<div class="container">
			<div class="form-horizontal form-signin">
				<div class="form-group">
					<label for="userName" class="col-sm-3 control-label">账号</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" id="userName" placeholder="账号">
					</div>
				</div>
				<div class="form-group">
					<label for="userPwd" class="col-sm-3 control-label">密码</label>
					<div class="col-sm-9">
						<input type="password" class="form-control" id="userPwd" placeholder="密码">
					</div>
				</div>
				<div class="form-group">
					<label for="captcha" class="col-sm-3 control-label">验证码</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" id="captcha" placeholder="验证码">
					</div>
					<div class="col-sm-4">
						<img id="captchaImg" onclick="cnSiteImport.changeCaptcha()">
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-3 col-sm-9">
						<button type="submit" id="registerBtn" class="btn btn-default">注册</button>
					</div>
				</div>
			</div>
		</div>
		
		<div th:replace="fragment/front/footer"></div>
		<div th:replace="fragment/front/script"></div>
		<script>
			$(document).keydown(function(event) { 
				// 回车
				if(event.keyCode == 13) {
					$("#registerBtn").click();
				}
			});
			$("#captchaImg").attr("src", ctx + "captcha/get/" + Math.random() + ".html");
		</script>
	</body>
</html>